﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using NUnit.Framework;

//using Pibby.Core.IO;
//using Pibby.Core.Models;
//using Pibby.Core.Persistence;
//using Pibby.Core.Presenters;
//using Pibby.Core.Views;

//namespace Pibby.Core.Tests.Presenters
//{
//    [TestFixture]
//    public class RssFeedPresenterTests : IntegrationBaseTestFixture
//    {
//        private Stubs.RssFeedView _view;
//        private RssFeedModel _model;
//        private RssFeedPresenter _presenter;
//        private SQLiteRepository _repo;

//        [SetUp]
//        public void Setup()
//        {
//            base.CreateIocObjects();

//            this._repo = new SQLiteRepository(":memory:");
//            this._repo.CreateNewDatabase();

//            string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
//            IFolder folder = new Stubs.Folder(folderPath, 25, 0);

//            this._view = new Stubs.RssFeedView();
//            this._model = new RssFeedModel(); //this._repo, folder);
//            this._presenter = new RssFeedPresenter(this._view, this._model, new Pibby.Core.Web.NetworkAuthentication());
//        }

//        [TearDown]
//        public void TearDown()
//        {
//            this._presenter.UnsubscribeToClientEvents();
//        }

//        [Test]
//        public void AtStartup_EmptyRepository_ModelAndViewLoadedCorrectly()
//        {
//            this._view.SimulateLoadEvent();
//            //Assert.IsTrue(this._view.ShowPodcastsCalled);
//            //Assert.AreEqual(0, this._model.Podcasts.Count);
//        }
//    }
//}
